import { createStore } from 'vuex'

export default createStore({
  strict: true,
  state: {
 
      count : 3,
      count1 :2,
      price : 15,
      price1 : 16

  },
  getters: {
  },
  mutations: {
    addCount(state,n){
      
      state.count += n
      if (state.count < 0) {
        return state.count = 0
      }
      
    },
    addCount1(state,n){
      state.count1 += n
      if (state.count1 < 0) {
        return state.count1 = 0
      }
    }
  },
  actions: {
  },
  modules: {
  }
})
